package a;

public class Main {
    public static void main(String[] args) {
        try {
            BeanFactory beanFactory=new BeanFactory("a");
            Action action = beanFactory.getBean("action", Action.class);
            action.hhh();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }
}
